package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="News"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class New implements Serializable {

    /** identifier field */
    private Integer newsId;

    /** persistent field */
    private String newsTitle;

    /** persistent field */
    private String classId;

    /** nullable persistent field */
    private String content;

    /** persistent field */
    private String creator;

    /** persistent field */
    private String createDate;

    /** persistent field */
    private String isvisible;

    /** nullable persistent field */
    private String opdate;

    /** nullable persistent field */
    private Integer hits;

    /** nullable persistent field */
    private String note;

    /** nullable persistent field */
    private String assoId;
    
    private String website;
    
    /** full constructor */
    public New(String newsTitle, String classId, String content, String creator, String createDate, String isvisible, String opdate, Integer hits, String note, String assoId,String website) {
        this.newsTitle = newsTitle;
        this.classId = classId;
        this.content = content;
        this.creator = creator;
        this.createDate = createDate;
        this.isvisible = isvisible;
        this.opdate = opdate;
        this.hits = hits;
        this.note = note;
        this.assoId = assoId;
        this.website =website;
    }

    /** default constructor */
    public New() {
    }

    /** minimal constructor */
    public New(String newsTitle, String classId, String creator, String createDate, String isvisible) {
        this.newsTitle = newsTitle;
        this.classId = classId;
        this.creator = creator;
        this.createDate = createDate;
        this.isvisible = isvisible;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="NewsId"
     *             unsaved-value="0"
     *         
     */
    public Integer getNewsId() {
        return this.newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    /** 
     *            @hibernate.property
     *             column="NewsTitle"
     *             length="150"
     *             not-null="true"
     *         
     */
    public String getNewsTitle() {
        return this.newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    /** 
     *            @hibernate.property
     *             column="ClassId"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getClassId() {
        return this.classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    /** 
     *            @hibernate.property
     *             column="Content"
     *             length="2147483647"
     *         
     */
    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /** 
     *            @hibernate.property
     *             column="Creator"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getCreator() {
        return this.creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *             not-null="true"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="IsVisible"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsvisible() {
        return this.isvisible;
    }

    public void setIsvisible(String isvisible) {
        this.isvisible = isvisible;
    }

    /** 
     *            @hibernate.property
     *             column="OpDate"
     *             length="23"
     *         
     */
    public String getOpdate() {
        return this.opdate;
    }

    public void setOpdate(String opdate) {
        this.opdate = opdate;
    }

    /** 
     *            @hibernate.property
     *             column="Hits"
     *             length="10"
     *         
     */
    public Integer getHits() {
        return this.hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    /** 
     *            @hibernate.property
     *             column="Note"
     *             length="20"
     *         
     */
    public String getNote() {
        return this.note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    /** 
     *            @hibernate.property
     *             column="AssoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("newsId", getNewsId())
            .toString();
    }

	public String getWebsite() {
		return this.website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

}
